home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 283_01 / fafnir < prev    next >
Text File  |  1988-12-15  |  3KB  |  104 lines

  1.  
  2. #----------------------------------------------------------------------
  3. # Makes FAFNIR.LIB "Elysian Fields" Forms Editor, 12/15/88, d.c.oshel
  4. #----------------------------------------------------------------------
  5. # plus separate console input/output library, LIAO.LIB
  6. # plus combined library FAFNIR4L.LIB
  7. #
  8. #   update 12/15/88, now uses Microsoft Systems Journal direct screen
  9. #                    writes with genuine CGA *SNOWBUSTER* routines!
  10. #                    See MSJ, Nov. 1988, p. 1; also LVIDEO.ASM
  11. #
  12. # plus ES.EXE, a simple(!) screen file editor (partially assembler)
  13. #----------------------------------------------------------------------
  14. # compiler:         Microsoft C 5.0
  15. # assembler:        MASM 5.1
  16. # operating system: MS-DOS 2.0
  17. # memory model:     Small, if making ES.EXE; otherwise, use Large
  18. #----------------------------------------------------------------------
  19.  
  20. # defaults are for LARGE model libraries; I have not yet completely
  21. # debugged small model modules for use with MSJ video i/o primitives
  22. # -- 12/15/88, d.c.oshel
  23.  
  24. MDL=/AL
  25. CIO=liao
  26. FAF=lfaf
  27. LIB=4l
  28. ASM=lvideo
  29.  
  30. # console i/o library
  31.  
  32. $(CIO).lib: $(ASM).asm cvideo.c \
  33. gotoxy.c keyin.c savescrn.c scroll.c \
  34. swapscrn.c vidinit.c wbox.c window.c wink.c wprintf.c wputs.c \
  35. dlrcvt.c sound.c tm.c julday.c \
  36. clairol.c crypt.c fstats.c julian.c keydefs.c oldedits.c typeafil.c
  37.      del $(CIO).lib
  38.      masm $(ASM)/ML/E/Z;
  39.      cl /c $(MDL) /Ox cvideo.c
  40.      lib $*+$(ASM)+cvideo;
  41.      del *.obj
  42.      cl /c $(MDL) /Ox vidinit.c gotoxy.c keyin.c
  43.      cl /c $(MDL) /Ox savescrn.c scroll.c swapscrn.c 
  44.      cl /c $(MDL) /Ox wbox.c window.c wink.c wprintf.c wputs.c
  45.      lib $*+vidinit+gotoxy+keyin+savescrn+scroll;
  46.      lib $*+swapscrn+wbox+window+wink+wprintf+wputs;
  47.      del *.obj
  48.      del *.bak
  49.      cl /c $(MDL) dlrcvt.c sound.c tm.c julday.c
  50.      lib $*+dlrcvt+sound+tm+julday;
  51.      del *.obj
  52.      del *.bak
  53.      cl /c $(MDL) clairol.c crypt.c fstats.c julian.c keydefs.c oldedits.c typeafil.c
  54.      lib $*+clairol+crypt+fstats+julian+keydefs+oldedits+typeafil;
  55.      del *.obj
  56.      del *.bak
  57.  
  58.  
  59.  
  60.  
  61. # ======  THIS IS THE FAFNIR FORMS ENGINE PROPER  ======
  62. #
  63.  
  64. $(FAF).lib: fafnir.c usstates.c counties.c 
  65.      del $(FAF).lib
  66.      cl /c $(MDL) fafnir.c usstates.c counties.c
  67.      lib $*+fafnir+usstates+counties;
  68.      del *.obj
  69.  
  70.  
  71. # combine the two libraries into one
  72.  
  73. fafnir$(LIB).lib: $(FAF).lib $(CIO).lib
  74.      del fafnir$(LIB).lib
  75.      lib fafnir$(LIB)+$(CIO).lib+$(FAF).lib,fafnir$(LIB).xrf;
  76.      del $(FAF).lib
  77.      del $(CIO).lib
  78.  
  79.  
  80. # A demonstration program for the Fafnir library functions
  81. # This demo gives the library a severe workout under all memory models
  82.  
  83. demo$(LIB).exe: demo.c fafnir$(LIB).lib
  84.      cl /Fedemo$(LIB) $(MDL) demo.c -link fafnir$(LIB)
  85.      del *.obj
  86.  
  87. # Microsoft Systems Journal's own demonstration program
  88. # Fafnir does not use some of Jeff Prosise's functions, so these are
  89. # proved out here (including my mods to his code!)
  90.  
  91. jdemo$(LIB).exe: msjdemo.c fafnir$(LIB).lib
  92.      cl /Fejdemo$(LIB) $(MDL) msjdemo.c -link fafnir$(LIB)
  93.      del *.obj
  94.  
  95. # screen file editor, small model only (note: ES.EXE is distributed!)
  96.  
  97. # NOTICE: uncomment this only if Small Model, i.e., MDL=/AS
  98. #
  99. # es.exe: $*.c keys.asm futility.lib
  100. #    masm keys/ML/E/Z;
  101. #    cl $*.c keys \msc5\lib\setargv -link /NOE fafnir4s
  102. #    del *.obj
  103.  
  104.